package com.manner.groupon.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 后台人员信息表
 *
 * @TableName tb_background_people
 */
@TableName(value = "tb_background_people")
@Data
public class BackgroundPeople extends Object implements Serializable {

    /**
     * 采用雪花算法自增作为主键，数据唯一标识
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 联系人姓名
     */
    @TableField(value = "linkman_name")
    private String linkmanName;

    /**
     * 联系人手机号
     */
    @TableField(value = "linkman_phone")
    private String linkmanPhone;

    /**
     * 账面余额
     */
    @TableField(value = "book_balance")
    private BigDecimal bookBalance;

    /**
     * 角色编号
     */
    @TableField(value = "role_id")
    private Integer roleId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}